package com.data.modules.online.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import org.jeecgframework.poi.excel.annotation.Excel;

@ApiModel(description = "onl_auth_relation", value = "onl_auth_relation对象")
@TableName("onl_auth_relation")
public class OnlAuthRelation implements Serializable {
    private static final long serialVersionUID = 1;
    @Excel(name = "权限id", width = 15.0d)
    @ApiModelProperty("权限id")
    private String authId;
    private String authMode;
    private String cgformId;
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("id")

    private String f75id;
    @Excel(name = "角色id", width = 15.0d)
    @ApiModelProperty("角色id")
    private String roleId;
    @Excel(name = "1字段 2按钮 3数据权限", width = 15.0d)
    @ApiModelProperty("1字段 2按钮 3数据权限")
    private Integer type;

    public OnlAuthRelation setAuthId(String authId2) {
        this.authId = authId2;
        return this;
    }

    public OnlAuthRelation setAuthMode(String authMode2) {
        this.authMode = authMode2;
        return this;
    }

    public OnlAuthRelation setCgformId(String cgformId2) {
        this.cgformId = cgformId2;
        return this;
    }

    public OnlAuthRelation setId(String id) {
        this.f75id = id;
        return this;
    }

    public OnlAuthRelation setRoleId(String roleId2) {
        this.roleId = roleId2;
        return this;
    }

    public OnlAuthRelation setType(Integer type2) {
        this.type = type2;
        return this;
    }

    public String toString() {
        return "OnlAuthRelation(id=" + getId() + ", roleId=" + getRoleId() + ", authId=" + getAuthId() + ", type=" + getType() + ", cgformId=" + getCgformId() + ", authMode=" + getAuthMode() + ")";
    }


    public boolean canEqual(Object other) {
        return other instanceof OnlAuthRelation;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof OnlAuthRelation)) {
            return false;
        }
        OnlAuthRelation onlAuthRelation = (OnlAuthRelation) o;
        if (!onlAuthRelation.canEqual(this)) {
            return false;
        }
        Integer type2 = getType();
        Integer type3 = onlAuthRelation.getType();
        if (type2 != null ? !type2.equals(type3) : type3 != null) {
            return false;
        }
        String id = getId();
        String id2 = onlAuthRelation.getId();
        if (id != null ? !id.equals(id2) : id2 != null) {
            return false;
        }
        String roleId2 = getRoleId();
        String roleId3 = onlAuthRelation.getRoleId();
        if (roleId2 != null ? !roleId2.equals(roleId3) : roleId3 != null) {
            return false;
        }
        String authId2 = getAuthId();
        String authId3 = onlAuthRelation.getAuthId();
        if (authId2 != null ? !authId2.equals(authId3) : authId3 != null) {
            return false;
        }
        String cgformId2 = getCgformId();
        String cgformId3 = onlAuthRelation.getCgformId();
        if (cgformId2 != null ? !cgformId2.equals(cgformId3) : cgformId3 != null) {
            return false;
        }
        String authMode2 = getAuthMode();
        String authMode3 = onlAuthRelation.getAuthMode();
        if (authMode2 == null) {
            if (authMode3 == null) {
                return true;
            }
        } else if (authMode2.equals(authMode3)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        int i = 43;
        Integer type2 = getType();
        int hashCode = type2 == null ? 43 : type2.hashCode();
        String id = getId();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = id == null ? 43 : id.hashCode();
        String roleId2 = getRoleId();
        int i3 = (hashCode2 + i2) * 59;
        int hashCode3 = roleId2 == null ? 43 : roleId2.hashCode();
        String authId2 = getAuthId();
        int i4 = (hashCode3 + i3) * 59;
        int hashCode4 = authId2 == null ? 43 : authId2.hashCode();
        String cgformId2 = getCgformId();
        int i5 = (hashCode4 + i4) * 59;
        int hashCode5 = cgformId2 == null ? 43 : cgformId2.hashCode();
        String authMode2 = getAuthMode();
        int i6 = (hashCode5 + i5) * 59;
        if (authMode2 != null) {
            i = authMode2.hashCode();
        }
        return i6 + i;
    }

    public String getId() {
        return this.f75id;
    }

    public String getRoleId() {
        return this.roleId;
    }

    public String getAuthId() {
        return this.authId;
    }

    public Integer getType() {
        return this.type;
    }

    public String getCgformId() {
        return this.cgformId;
    }

    public String getAuthMode() {
        return this.authMode;
    }
}
